{{each data as item index}} 
    <span class="{{index == 0 ? 'on' : ''}}" data-id="{{item.id}}" data-order="{{item.order}}" data-parentId="{{item.parentId}}" data-diagnosisId="{{item.diagnosisId}}" data-department="{{item.department}}" data-name="{{item.name}}">{{item.name}}</span>
{{/each}}